package com.ruoyi.work.service;

import java.util.List;

import com.ruoyi.common.core.page.Pages;
import com.ruoyi.common.ehance.MyService;
import com.ruoyi.work.domain.WorkOrder;

/**
 * 工单Service接口
 * 
 * @author xwj
 * @date 2024-08-13
 */
public interface IWorkOrderService extends MyService<WorkOrder> {
    /**
     * 查询工单
     * 
     * @param id 工单主键
     * @return 工单
     */
    public WorkOrder selectWorkOrderById(Long id);

    /**
     * 查询工单列表
     * 
     * @param workOrder 工单
     * @return 工单集合
     */
    public List<WorkOrder> selectWorkOrderList(WorkOrder workOrder);

    /**
     * 新增工单
     * 
     * @param workOrder 工单
     * @return 结果
     */
    public WorkOrder insertWorkOrder(WorkOrder workOrder);

    /**
     * 修改工单
     * 
     * @param workOrder 工单
     * @return 结果
     */
    public WorkOrder updateWorkOrder(WorkOrder workOrder);

    /**
     * 批量删除工单
     * 
     * @param ids 需要删除的工单主键集合
     * @return 结果
     */
    public int deleteWorkOrderByIds(Long[] ids);

    /**
     * 删除工单信息
     * 
     * @param id 工单主键
     * @return 结果
     */
    public int deleteWorkOrderById(Long id);

    int delete(WorkOrder workOrder);

    Pages<WorkOrder> queryPage(WorkOrder workOrder);

    void insertWorkOrderDetails(WorkOrder workOrder);
}
